// 房屋隐患管理
import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/houseRemove',
  name: 'houseRemove',
  component: LAYOUT,
  redirect: '/houseRemove/houseRemovelist',
  meta: {
    orderNo: 403,
    icon: 'ion:bar-chart-outline',
    title: t('routes.demo.houseRemovelist.root'),
    roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator'],
    userGroups: ['FireControl'],
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'houseRemovelist',
      name: 'houseRemovelist',
      meta: {
        title: t('routes.demo.houseRemovelist.root'),
        hideChildrenInMenu: true,
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['FireControl'],
      },
      component: () => import('/@/views/houseRemovelist/index.vue'),
    },
  ],
};

export default charts;
